﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MenuArticle.ascx.cs" Inherits="TienTeTuong.MenuArticle" %>
<%@ Import Namespace="TienTeTuong" %>
 <div class="Title">Danh mục bài viết</div>
                        <div class="Content">
                            <ul>
                                <% foreach (var val in lstArticleCate)
                                   {
                                       var ArticleBUS = new ArticleBUS();
                                       var lstArticle = ArticleBUS.GetListArticleDetailByID(val.ArtCateID);
%>
                                <li><a href="Articles.aspx?page=1&CateArtID=<%=val.ArtCateID%>"><%= val.CateName %></a>
                                    <% if (lstArticle.Count > 0)
                                       { %>
                                	    <ul>
                                	        <% foreach (var art in lstArticle)
                                               {%>
                                                        <li><a href="articleDetail.aspx?id=<%= art.ArtID %>"><%=art.Title %></a></li>
                                              <% } %>
                                    	  
                                        </ul>
                                    <% } %>
                                </li>
                               <% }
%>
                            </ul>
 </div>
